/*
========================================================================
 Name        : CallForeverSettingItemListSettings.cpp
 Author      : jimmy54
 Copyright   : welcome to my weibo:www.weibo.com/jimmy54
 Description : 
========================================================================
*/
/**
 *	Generated helper class which manages the settings contained 
 *	in 'CallForeverSettingItemList'.  Each CAknSettingItem maintains
 *	a reference to data in this class so that changes in the setting
 *	item list can be synchronized with this storage.
 */
 
// [[[ begin generated region: do not modify [Generated Includes]
#include <e32base.h>
#include <stringloader.h>
#include <barsread.h>
#include <CallForever.rsg>
#include "CallForeverSettingItemListSettings.h"
// ]]] end generated region [Generated Includes]

/**
 * C/C++ constructor for settings data, cannot throw
 */
TCallForeverSettingItemListSettings::TCallForeverSettingItemListSettings()
	{
	}

/**
 * Two-phase constructor for settings data
 */
TCallForeverSettingItemListSettings* TCallForeverSettingItemListSettings::NewL()
	{
	TCallForeverSettingItemListSettings* data = new( ELeave ) TCallForeverSettingItemListSettings;
	CleanupStack::PushL( data );
	data->ConstructL();
	CleanupStack::Pop( data );
	return data;
	}
	
/**
 *	Second phase for initializing settings data
 */
void TCallForeverSettingItemListSettings::ConstructL()
	{
	// [[[ begin generated region: do not modify [Generated Initializers]
		{
		HBufC* text = StringLoader::LoadLC( R_CALL_FOREVER_SETTING_ITEM_LIST_NO );
		SetNo( text->Des() );
		CleanupStack::PopAndDestroy( text );
		}
	SetDialCount( 0 );
	SetType( 0 );
	// ]]] end generated region [Generated Initializers]
	
	}
	
// [[[ begin generated region: do not modify [Generated Contents]
TDes& TCallForeverSettingItemListSettings::No()
	{
	return iNo;
	}

void TCallForeverSettingItemListSettings::SetNo(const TDesC& aValue)
	{
	if ( aValue.Length() < KNoMaxLength)
		iNo.Copy( aValue );
	else
		iNo.Copy( aValue.Ptr(), KNoMaxLength);
	}

TInt& TCallForeverSettingItemListSettings::DialCount()
	{
	return iDialCount;
	}

void TCallForeverSettingItemListSettings::SetDialCount(const TInt& aValue)
	{
	iDialCount = aValue;
	}

TInt& TCallForeverSettingItemListSettings::Type()
	{
	return iType;
	}

void TCallForeverSettingItemListSettings::SetType(const TInt& aValue)
	{
	iType = aValue;
	}

// ]]] end generated region [Generated Contents]

